#!/bin/bash
#

number=0
while read line;do
uid=$(echo $line | awk -F: '{print $3}')
  if [ $uid -ge 1 -a $uid -le 999 ];then
    name=$(echo $line | awk -F: '{print $1}')
    echo $name
    let number++
    if [ $number -eq 5 ];then\
      break
    fi
  fi
done < /etc/passwd
